const defaultState = {
  counterValue: 1,
};
const counter = (state = defaultState, action) => {
  if (action.type === "change_counterValue_value") {
    const newState = JSON.parse(JSON.stringify(state));
    newState.counterValue = newState.counterValue+1;
    return newState;
  }
  return state;
};
export default counter;
